<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php echo ($title); ?></title>
<script type="text/javascript" src="/xiaoshuo/Public/static/js/jquery.min.js"></script>
<script type="text/javascript" src="/xiaoshuo/Public/bootstrap/js/bootstrap.min.js"></script>
<link href="/xiaoshuo/Public/bootstrap/css/xs.min.css" rel="stylesheet" type="text/css" />

</head>

<body>
<nav class="navbar navbar-default">
  <div class="container-fluid container">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">小说系统</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
      <a class="navbar-brand" href="#">小说系统</a> </div>
    
    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
      <li class="active"><a href="#">排行榜<span class="sr-only">(current)</span></a></li>
      <li><a href="#">最新更新</a></li>
      <li><a href="#">热门小说</a></li>
      
        <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">更多 <span class="caret"></span></a>
          <ul class="dropdown-menu" role="menu">
            <?php if(is_array($type_list)): $i = 0; $__LIST__ = $type_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$type): $mod = ($i % 2 );++$i;?><li><a href="#"><?php echo ($type["type_name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
          </ul>
        </li>
      </ul>
      <ul class="nav navbar-nav navbar-right">
        <form class="navbar-form navbar-left" action="/xiaoshuo/index.php/Home/Book/index" method="post" role="search">
          <div class="form-group">
            <input type="text" name="book_name" class="form-control" placeholder="小说名称">
          </div>
          <button type="submit" class="btn btn-default">搜索</button>
        </form>
        <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">用户名 <span class="caret"></span></a>
          <ul class="dropdown-menu" role="menu">
            <li><a href="#">修改资料</a></li>
            <li><a href="#">我的收藏</a></li>
            <li><a href="#">看过的书</a></li>
            <li><a href="#">留言互动</a></li>
            <li class="divider"></li>
            <li><a href="#">退出</a></li>
          </ul>
        </li>
      </ul>
    </div>
    <!-- /.navbar-collapse --> 
  </div>
  <!-- /.container-fluid --> 
</nav>
<div class="container">




<div class="panel panel-default">
  <div class="panel-heading">
  	<div class="row"><ol class="breadcrumb">
  <li><a href="/xiaoshuo/index.php/Home">首页</a></li>
  <li><a href="#">分类</a></li>
  <li class="active">书名</li>
</ol></div>
  </div>
  <div class="panel-body">
		<div>
            <div class="col-md-2"><img src="<?php echo ($book["thumbnail"]); ?>" class="img-thumbnail" alt="..."></div>
            <div class="col-md-10">
            	<h3><?php echo ($book["book_name"]); ?></h3>
                <div class="row">
                    <div class="col-md-6">作       者：<?php echo ($book["author"]); ?>（共 <?php echo ($book_count); ?> 章）</div>
                    <div class="col-md-6">动       作：直达底部    TXT下载</div>
                    <div class="col-md-6">最后更新：2015/6/27 6:30:24</div>
                    <div class="col-md-6">最新更新：第四十三章 炼丹大师?</div>
                </div>
                <hr>
                <div class="row">
                	<div class="col-md-12"><?php echo ($book["intro"]); ?></div>
                </div>
            </div>
        
        </div>
  </div>
</div>

<div class="panel panel-default"> 
  <!-- Default panel contents -->
  <div class="panel-heading" style="text-align:center;">《<?php echo ($book["book_name"]); ?>》正文</div>
  <table class="table table-striped table-bordered table-hover">
    <tbody>
    <tr>
    <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 3 );++$i;?><td width="33%">
        <a href="/xiaoshuo/index.php/Home/Book/read?book_id=<?php echo ($id); ?>&article_id=<?php echo ($vo["_id"]); ?>"><?php echo ($vo["title"]); ?></a>
        </td>
    	<?php if(($mod) == "2"): ?></tr><tr><?php endif; endforeach; endif; else: echo "" ;endif; ?>
    </tbody>
  </table>
</div>
<link href="/xiaoshuo/Public/static/css/page.css" rel="stylesheet" type="text/css" />
<div class="scott"><?php echo ($page); ?></div>

<hr />



<footer>
        <p style="text-align:center;">&copy; Company 2015  |  京ICP备11008151号 </p>
</footer>
    



</div>
</body>
</html>